﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NotAClue.Web;
using System.Configuration;

namespace DD_Extensions
{
    public partial class Site : System.Web.UI.MasterPage
    {
        public String Version { get; set; }

        protected void Page_Init(object sender, EventArgs e)
        {
            Page.SetFavicon();

            // display version info
            Version = Global.ApplicationVersion;

            //HeaderTitle.Text = "DD_Extensions";
            //HeaderStrapline.Text = "Reporting Dashboard";

            // display TEST water mark on debug site
            var test = Convert.ToBoolean(ConfigurationManager.AppSettings["TEST"]);
            if (test)
            {
                // add water mark style to page head
                Page.AddCssToHead("~/Styles/Beta.css");
                // add [TEST] to the page title
                Page.Title = String.Format("{0} [TEST]", Page.Title);
            }
        }
    }
}